public class Vegetable extends FoodItem
| Modifier and Type | Field | Description |
|---|---|---|
private java.lang.String |
farmName |
| Constructor | Description |
|---|---|
Vegetable() |
Default Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addItem(java.util.Scanner scanner) |
Reads from the Scanner object passed in and fills the data member fields of the class with valid data.
|
java.lang.String |
toString() |
inputCode, isEqual, updateItempublic boolean addItem(java.util.Scanner scanner)
FoodItem